package com.ibeeking.found.open.b.rest.controller.v1.feign;


import com.ibeeking.found.common.entity.open.OpenAuthDTO;
import com.ibeeking.found.open.b.rest.service.IOpenService;
import com.ibeeking.nematos.constants.enums.OperateLogTypeEnum;
import com.ibeeking.nematos.log.annotation.Log;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName WxOpenFeignController控制器
 * @Description
 * @Author ibeeking
 * @Date 2020-12-01 18:15
 **/

@RestController
@RequestMapping("/b/open/api/feign/v1")
public class WxOpenFeignController {

    @Resource
    private IOpenService  openServiceImpl;

//    @Log(logType = OperateLogTypeEnum.QUERY, describe = "检查微信小程序授权是否有效")
//    @PostMapping(value = "/checkEffectAuthWechatMa/{appId}")
//    public OpenAuthDTO checkEffectAuthWechatMa(@PathVariable("appId") String appId) {
//        return openServiceImpl.checkEffectAuthWechatMa(null, appId);
//    }
//
//    @Log(logType = OperateLogTypeEnum.QUERY, describe = "检查当前授权小程序")
//    @PostMapping(value = "/getCurrentAuthorizedWechatMa")
//    public OpenAuthDTO getCurrentAuthorizedWechatMa() {
//        return openServiceImpl.getCurrentAuthorizedWechatMa();
//    }
//
//    @Log(logType = OperateLogTypeEnum.QUERY, describe = "检查微信公众号授权是否有效")
//    @PostMapping(value = "/checkEffectAuthWechatMP/{appId}")
//    public OpenAuthDTO checkEffectAuthWechatMP(@PathVariable("appId") String appId) {
//        return openServiceImpl.checkEffectAuthWechatMP(null, appId);
//    }
//
//    @Log(logType = OperateLogTypeEnum.QUERY, describe = "检查当前授权小程序")
//    @PostMapping(value = "/getCurrentAuthorizedWechatMp")
//    public OpenAuthDTO getCurrentAuthorizedWechatMp() {
//        return openServiceImpl.getCurrentAuthorizedWechatMp();
//    }
//
//    @Log(logType = OperateLogTypeEnum.QUERY, describe = "检查企业微信号授权是否有效")
//    @PostMapping(value = "/checkEffectAuthWechatCP/{appId}")
//    public OpenAuthDTO checkEffectAuthWechatCP(@PathVariable("appId") String appId) {
//        return openServiceImpl.checkEffectAuthWechatCP(null, appId);
//    }
//
//    @Log(logType = OperateLogTypeEnum.QUERY, describe = "检查微信公众号授权是否有效")
//    @PostMapping(value = "/checkEffectWechatComponentAccessToken/{componentAppId}")
//    public boolean checkEffectWechatComponentAccessToken(@PathVariable("componentAppId") String componentAppId) {
//        return openServiceImpl.checkEffectWechatComponentAccessToken(null, componentAppId);
//    }
}
